﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using Imgur.Net.Auth;
using NUnit.Framework;

namespace Imgur.Net.Test.Auth
{
    [TestFixture]
    public class RegistrationTokensChangedEventArgsTests
    {
        [Test]
        public void CreateInstanceTest()
        {
            var tokens = new DefaultRegistrationTokenContext("aaa", "rrrr", DateTime.Now);

            var instance = new RegistrationTokensChangedEventArgs(tokens);
            Assert.IsNotNull(instance);
        }

        [Test]
        [ExpectedException(typeof(ArgumentNullException))]
        public void CreateInstanceNullTokensTest()
        {
            var instance = new RegistrationTokensChangedEventArgs(null);
        }
    }
}
